import { Tabs } from 'antd'
import c from 'classnames'
import './index.less'

/**
 * 基于 ant-design 的 <Tabs> 组件，优化了样式
 */
type TabsProps = Parameters<typeof Tabs>[0]

export default function BeautyTabs(props: TabsProps) {
  const { className, ...restProps } = props

  return <Tabs {...restProps} className={c('qun-beauty-tabs', className)} />
}

BeautyTabs.TabPane = Tabs.TabPane
